/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package acceso.util;

import com.google.gson.Gson;
import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author romulogalindo
 */
public class Tr_autinc {
    int id;
    List ts;

    public Tr_autinc(int id) {
        this.id = id;
    }

    public Tr_autinc(int id, List ts) {
        this.id = id;
        this.ts = ts;
    }
    
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public List getTs() {
        return ts;
    }

    public void setTs(List ts) {
        this.ts = ts;
    }
    
    
    public static void main(String[] args){
        List l_tds = new ArrayList();
        l_tds.add(new Td_autinc(1, 1, 'L', "Lara", "01"));
        l_tds.add(new Td_autinc(2, 1, 'L', "Lara1", "02"));
        l_tds.add(new Td_autinc(3, 1, 'L', "Lara2", "03"));
        l_tds.add(new Td_autinc(4, 1, 'L', "Lara3", "04"));
                
        List l_trs = new ArrayList();
        l_trs.add(new Tr_autinc(1,l_tds));
        l_trs.add(new Tr_autinc(2,l_tds));
        l_trs.add(new Tr_autinc(3,l_tds));
        Gson g= new Gson();
        //>g.toJson(tr);
        System.out.println("TR>\n"+g.toJson(l_trs));
    }
    
}
